package org.feign.client.fallback;

import org.feign.client.UserFeignClient;
import org.feign.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @EnableFeignClients(org.feign)
 * @compontScan(org.feign)
 *
 * */

@Component
public class UserFeignClientFallback  implements UserFeignClient {

    @Override
    public User findById(String id) {
        User user = new User();
        user.setName("访问出现异常，feign服务降级");
        return user;
    }
}
